<!DOCTYPE html>
<html lang="zh-cn">
    <head>
    <include file="Common:intoHead"/>
    <title>{$channelDetail.name} <?php if($channelDetail['name']){echo "-";}?> {:C('siteName')}</title>
</head>
<body>
<include file="Common:header" />

<div class="container " style="margin-top:80px;">

    <div class="row">
        <div class="col-md-8">

            <!--div class="alert alert-danger alert-dismissable">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                {$channelDetail.name}
            </div-->

            <volist name="articleList" id="vo">
                <div class="panel panel-success">
                    <div class="panel-heading">
                        <h4>
                            <button type="button" class="btn btn-danger btn-sm"><i class="fa fa-bar-chart-o fa-fw">{$vo.visitNums}</i></button>
                            <a href="{:U('Article/detail','id='.$vo[id])}">{$vo.title}</a>
                        </h4>
                    </div>
                    <div class="panel-body">
                        <p>{$vo.summary}</p>
                    </div>
                    <div class="panel-footer">
                        <em class="pull-right">{$vo.channelName}</em>
                        <em>最后更新：{$vo.update_time|timeToDate}</em>
                    </div>
                </div>
            </volist>
            <div class="pagination">{$page}</div>
        </div>

        <div class="col-md-4 col-sm-12">

            <form class="form-group" action="/">
                <div class="form-group input-group">
                    <input type="text" name="kw" class="form-control" placeholder="请输入标题/内容关键词" value="{$_GET['kw']}">
                    <span class="input-group-btn">
                        <button type="submit" class="btn btn-default submit"><i class="glyphicon glyphicon-search"></i>
                        </button>
                    </span>
                </div>
            </form>

            <?php if(is_array($smallChannelList)){ ?>
            <ul class="list-unstyled">
                <volist name="smallChannelList" id="data">
                    <li style="margin: 0 0 5px 0;"><a role="button" class="btn btn-lg btn-info btn-block" href="{$data.url}">{$data.name}</a></li>
                </volist>
            </ul>
            <?php } ?>

            <div class="panel panel-red">
                <div class="panel-heading"><strong>热门文章</strong></div>
                <div class="list-group">
                    <volist name="randList" id="randVo">
                        <a href="{:U('Article/detail','id='.$randVo[id])}" class="list-group-item">{$randVo.title}</a>
                    </volist>
                </div>
            </div>

            <div class="panel panel-green">
                <div class="panel-heading"><strong>最新评论</strong></div>
                <div class="list-group">
                    <!-- UYAN NEW COMMENT BEGIN -->
                    <div id="uyan_newcmt_unit"></div>
                    <script type="text/javascript" src="http://v2.uyan.cc/code/uyan.js?uid=1867659"></script> <!-- 如果已经过加载此行JS，即可不用重复加载 -->
                    <!-- UYAN NEW COMMENT END -->
                </div>
            </div>

        </div>
    </div>
</div>
<include file="Common:footer" />

</body>
</html>